package org.example.stockdemo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.stockdemo.entity.Stock;
import org.example.stockdemo.entity.StockDetail;
import org.example.stockdemo.vo.FundTrendItemListVO;

import java.util.List;

public interface StockDetailService extends IService<StockDetail> {

    //    批量保存股票数据
    boolean batchSaveStock(List<StockDetail> stockDetails);

    /**
     * 根据股票代码查询股票数据
     * @param code
     * @return
     */
    StockDetail getStockDetailByCode(String code);

    /**
     * 获取股票分时数据
     * @param stockCode
     * @return
     */
    FundTrendItemListVO getMinuteData(String stockCode);
}